	var allDialogs = [];
					var seq = 0;
					//删除地址
					function deladdress(id,name,options) {
						options = $.extend({title: "提示"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action=''><div class='updtitle field'><p class='fs_14'>您确认删除所选项？删除将不可恢复！</p></div><p class='sub t_c'><input type='submit' name='deladdress' value='确 定' class='mem_btn mem_btn06' /><input class='mem_btn mem_btn07' type='button' value='取 消'  onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					//修改产品标题
					function updatetile(pro_id,pro_title,options) {
						options = $.extend({title: '修改产品标题'}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='company_product.php?do=manage'><div class='updtitle field'><p class='fs-14 c-999'>请输入您要修改的新标题</p><p><input type='hidden' name='pro_id' value='"+pro_id+"' /><input type='text' name='title'' size='50' style='border:1px solide #ccc; height:25px' value='"+pro_title+"'/></p></div><p class='sub t-c'><input type='submit' name='updtitle' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						
						return false;
					}
					//修改产品价格
					function updateprice(pro_id,pro_price,options) {
						options = $.extend({title: '修改产品价格'}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='company_product.php?do=manage'><div class='updtitle field'><p class='fs-14 c-999'>请输入您要修改的新价格</p><p><input type='hidden' name='pro_id' value='"+pro_id+"' /><input type='text' name='price' size='50' style='border:1px solide #ccc; height:25px' value='"+pro_price+"'/></p></div><p class='sub t-c'><input type='submit' name='updprice' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						
						return false;
					}
					//修改库存
					function updateinventory(pro_id,pro_inventory,options) {
						options = $.extend({title: '修改产品数量'}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='company_product.php?do=manage'><div class='updtitle field'><p class='fs-14 c-999'>请输入您要修改的新库存</p><p><input type='hidden' name='pro_id' value='"+pro_id+"' /><input type='text' name='inventory' size='50' style='border:1px solide #ccc; height:25px' value='"+pro_inventory+"'/></p></div><p class='sub t-c'><input type='submit' name='updateinventory' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						
						return false;
					}
					//修改价格区间
					function price_range(pro_id,units,options) {
						options = $.extend({title: "修改价格区间"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='company_product.php?do=manage' style='margin-top:10px;'>"					 
					 +"<input type='hidden' name='pro_id' value='"+pro_id+"' /><div class='price_ranges field'>"
					+"<p>购买&nbsp;<input type='text' value='' size='2' name='price_range[]'>"
					+"-<input type='text' value='' size='2' name='price_range[]'>"
					+"&nbsp;<font class='units'>"+units+"</font>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' value='' size='10' name='price_range[]'>"
                    +"&nbsp;元/<font class='units'>"+units+"</font></p></div>"
					+"<div class='price_ranges field'>"
					+"<p>购买&nbsp;<input type='text' value='' size='2' name='price_range1[]'>"
					+"-<input type='text' value='' size='2' name='price_range1[]'>"
					+"&nbsp;<font class='units'>"+units+"</font>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' value='' size='10' name='price_range1[]'>"
                    +"&nbsp;元/<font class='units'>"+units+"</font></p></div>"	
					+"<div class='price_ranges field'>"
					+"<p>购买&nbsp;<input type='text' value='' size='2' name='price_range2[]'>"
					+"-<input type='text' value='' size='2' name='price_range2[]'>"
					+"&nbsp;<font class='units'>"+units+"</font>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' value='' size='10' name='price_range2[]'>"
                    +"&nbsp;元/<font class='units'>"+units+"</font></p></div>"						
					+"<div class='price_ranges field'>"
					+"<p>购买&nbsp;<input type='text' value='' size='2' name='price_range3[]'>"
					+"-<input type='text' value='' size='2' name='price_range3[]'>"
					+"&nbsp;<font class='units'>"+units+"</font>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' value='' size='10' name='price_range3[]'>"
                    +"&nbsp;元/<font class='units'>"+units+"</font></p></div>"
                   +"<p style='margin-top:10px' class='sub t-c'><input type='submit' name='updateunit' value='保存' class='lianjie' />"
					+"<input class='cancel' type='button' value='取消' class='lianjie' onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialog);
						return false;
					}
					//分享
					function share(title,siteurl,content,sitetitle,imgurl,options) {
						options = $.extend({title: '产品信息分享'}, options || {});
						var dialog = new Boxy(
				     "<div class='share'><div class='shares' id='ckepop'><span class='fenx'>分享到：</span>"
					 +"<a href=http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(siteurl)+"&summary="+encodeURIComponent(content)+"&site="+encodeURIComponent(sitetitle)+"&pics="+encodeURIComponent(imgurl)+" title='分享到QQ空间'" +"class='jiathis_button_qzone'  target='_blank'><span class='jiathis_txt jtico jtico_qzone'></span></a>"
					 +"<a href=http://service.weibo.com/share/share.php?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(siteurl)+"&appkey="+encodeURIComponent(sitetitle)+"&pic="+encodeURIComponent(imgurl)+" title='分享到新浪微博'"
					 +"class='jiathis_button_tsina'  target='_blank'><span class='jiathis_txt jtico jtico_tsina'></span></a>"
					 +"<a href=http://v.t.qq.com/share/share.php?url="+encodeURIComponent(siteurl)+"&title="+encodeURI(title)+"&appkey="+encodeURI(sitetitle)+"&pic="+encodeURI(imgurl)+"  title='分享到腾讯微博'"
					 +"class='jiathis_button_tqq'  target='_blank'><span class='jiathis_txt jtico jtico_tqq'></span></a>"
					 +"<a href=http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(siteurl)+"&title="+encodeURIComponent(title)+" title='分享到人人网'"
					 +" class='jiathis_button_renren'  target='_blank'><span class='jiathis_txt jtico jtico_renren'></span></a>"
					 +"<a href='http://www.kaixin001.com/repaste/bshare.php?rtitle="+encodeURIComponent(title)+"&rurl="+encodeURIComponent(siteurl)+"&rcontent="+encodeURIComponent(content)+"  title='分享到开心网'"
					 +" class='jiathis_button_kaixin001'  target='_blank'><span class='jiathis_txt jtico jtico_kaixin001'></span></a>"
					 +"<a href=http://t.sohu.com/third/post.jsp?url="+encodeURIComponent(siteurl)+"&title="+encodeURIComponent(title)+"&pic="+encodeURIComponent(imgurl)+"  title='分享到搜狐微博'"
					 +"class='jiathis_button_tsohu'  target='_blank'><span class='jiathis_txt jtico jtico_tsohu'></span></a>"
					 +"<a href=http://www.douban.com/recommend?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(siteurl)+" title='分享到豆瓣'"
					 +"class='jiathis_button_douban'  target='_blank'><span class='jiathis_txt jtico jtico_douban'></span></a>"
					 +"<br><p class='fs-14 c-999'>把下面的内容发送给好友</p><p><textarea id='texts'  wrap='VIRTUAL' cols='65' rows='3'>"+
					 "我在"+sitetitle+"发布的消息："+title+"-"+siteurl+"</textarea></p>"
					 +"</div><p  class='t-c'><input type='button' name='updateunit' onclick='oCopy(&apos;texts&apos;)' value='复制' class='lianjie fx' /></p></div>", options);
						allDialogs.push(dialog);
						return false;
					}
	     						
           	function actions(id,proje,action,pid,pname,options) {				
				var ids='';
				var a =0;//选择个数
				var title ='';//提示标题
				var info='';//提示内容
				var actionfile='company_product.php';//提交到文件
				var pid='';//产品分类名称
				var pnames='';//产品分类名称
				pnames = pname;				
		   var e = document.getElementsByName(id);
			  for (var i=0; i<e.length; i++){
		     if(e[i].checked){
				 a++;
			   }
			   }
			   if(proje == 'downs'){
				  title ='产品下架';
				  info="您选中了<em class='c-red'>"+a+"</em>个产品,确定要下架吗？"
				   }else if(proje == 'dele'){
					   title='永久删除';					   
				  info="永久删除将不可恢复，您选中了<em class='c-red'>"+a+"</em>条产品信息，确定要永久删除吗？"
				 }else if(proje == 'anew'){
					   title='产品信息重发';
					   info="每天可以重发200条信息，您选中了<em class='c-red'>"+a+"</em>条产品信息，确定要重发吗？";
				 }else if(proje == 'commend'){
					   title='产品推荐';
					   info="共可以推荐20个产品，您选中了<em class='c-red'>"+a+"</em>条产品信息，确定要推荐吗？";
				 }else if(proje == 'cancel_commend'){
					   title='取消推荐';
					   info="您选择了<em class='c-red'>"+a+"</em>个产品，确定要取消推荐吗？";
				 }else if(proje == 'up'){
					   title='产品上架';
					   info="您选择了<em class='c-red'>"+a+"</em>个产品，确定要上架吗？";
				 }else if(proje == 'updeallclass'){
					   title='添加到分类';
					   info="您选择了<em class='c-red'>"+a+"</em>个产品，要添加到该分类吗？"+"<input type='hidden' name='pid' value='"+pid+"' />";
					   actionfile ='producttype.php';
				 }if(proje == 'deleallclass'){
					   title='移除分类';
					   info="确认将已选产品移除分类&quot;<em class='c-f60'>"+pnames+"</em>&quot;吗？</p><p class='fs-14 jg' style='margin-left:45px'><em class='c-999'>如果已选产品属于该分类，则自动从该分类中删除， 所属的其他分类将不受影响</em>"+"<input type='hidden' name='pid' value='"+pid+"' />";
					   actionfile ='producttype.php';
				 }
				options = $.extend({title: title}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='"+actionfile+"?do="+action+"' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;"+info+"</p><p id='proid'></p></div><p class='sub t-c'><input type='submit' name='"+proje+"' value='确定' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialog);						
			  for (var i=0; i<e.length; i++)
		     if(e[i].checked){
				 document.getElementById('proid').innerHTML +="<input type='hidden' name='pro_id[]' value='"+e[i].value+"' />"
			   }
						return false;
					}
					
					
					
					//自定义分类管理之添加分类
					function addclass(options) {						
						options = $.extend({title: "添加分类"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='producttype.php?do=addclass'><div class='updtitle field'><p class='fs-14 c-999'>请输入您要添加的分类名称</p><p><input type='text' name='title' size='50'/></p></div><p class='sub t-c'><input type='submit' name='addclass' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					
					//自定义管理之添加子分类
					function addsonclass(pare_id,options) {	
						options = $.extend({title: "添加子分类"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='producttype.php?do=addsonclass'><div class='updtitle field'><p class='fs-14 c-999'>请输入您要添加的分类名称</p><p><input type='hidden' name='pare_id' value='"+pare_id+"' /><input type='text' name='title' size='50'/></p></div><p class='sub t-c'><input type='submit' name='addclass' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					
					
					//删除分类
					function deleclass(id,num,options) {	
					   var info='';
					    if(num !==0){
							info="分类里有<em class='c-f60'>"+num+"</em>个产品，建议先<a href='producttype.php?do=mobile&typeid="+id+"' title='转移' class='c-06c'>转移</a>产品分类，否则产 品自动转成未分类产品，确定要删除此分类？";
							}else{
							info="分类里有0个产品，确定要删除此分类？"	
								}
						options = $.extend({title: "删除"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='producttype.php?do=del&id="+id+"' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;"+info+"</p></div><p class='sub t-c'><input type='submit' name='dele' value='确定' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					
					//修改分类标题
					function updateclass(name,value,id,options) {	
					   var info='';	
					   if(value==name){
						   return false;
						   }else{
							   info="您已经对产品分类名称进行了修改，是否保存？";
							   }
						options = $.extend({title: "修改"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='producttype.php?do=updateclass&id="+id+"' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;"+info+"</p><input type='hidden' name='name' value='"+value+"' /></div><p class='sub t-c'><input type='submit' name='update' value='确定' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					
					//新增一个相册
					function addalbum(t,options) {	
					 var action ="";//如果t为空；则是上传页面新增相册；否则是管理相册新增
					if(t =="album_upfile"){
						action="<input type='hidden' name='action' value='"+t+"'>";
						}					   
						options = $.extend({title: "创建相册"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='company_photo.php'><div class='updtitle field' style='min-height:30px'><p><input type='text' name='name' size='50'/></p>"+action+"</div><p class='sub t-c'><input type='submit' name='addalbum' value='保存' class='lianjie' /><input class='cancel' type='button' value='取消' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}
					//修改相册名§°
					function updatealbum(id,t,options) {	
					 var action ="";//å¦ætä¸ºç©ºï¼åæ¯ç¸ååé¡µä¿®æ¹ç¸åå±æ§ï¼å¦åæ¯ç®¡çç¸åä¿®æ¹ç¸åå±æ§
					 	if(t =="edit"){
						action="<input type='hidden' name='action' value='"+t+"'>";
						}	
						options = $.extend({title: "ä¿®æ¹ç¸åå±æ§"}, options || {});
						var dialogs = new Boxy(
				     "<form  method='post' action='company_photo.php?do=updatealbum&id="+id+"'><div class='updtitle field' style='min-height:30px'><p><input type='text' name='name' size='50'/></p>"+action+"</div><p class='sub t-c'><input type='submit' name='updatealbum' value='ä¿å­' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						return false;
					}				
					//å é¤ç¸ç
				function delepho(id,typeid,options) {		
		  		var e = document.getElementsByName(id);			
				options = $.extend({title: "å é¤éä¸­ç¸ç"}, options || {});
				var dialog = new Boxy(
				"<form  method='post' action='company_photo.php' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;å é¤éä¸­çå¾çï¼æ³¨æå é¤ä¹åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦å é¤ï¼</p><p id='proid'></p><input type='hidden' name='typeid' value='"+typeid+"' /></div><p class='sub t-c'><input type='submit' name='delepho' value='ç¡®å®' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialog);						
			  for (var i=0; i<e.length; i++)
		      if(e[i].checked){
				 document.getElementById('proid').innerHTML +="<input type='hidden' name='albumsid[]' value='"+e[i].value+"' />"
			   }
				return false;
				}
					
				//å é¤ç¸ç
				function delepho_one(id,typeid,options) {		
				options = $.extend({title: "å é¤ç¸ç"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='company_photo.php' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;æ³¨æå é¤ä¹åå°ä¸å¯æ¢å¤ï¼ç¡®å®è¦å é¤ï¼</p><p id='proid'></p><input type='hidden' name='typeid' value='"+typeid+"' /><input type='hidden' name='id' value='"+id+"' /></div><p class='sub t-c'><input type='submit' name='delepho_one' value='ç¡®å®' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialog);
					return false;
				}
					
					//è½¬ç§»å¾çåç±»
						function updaalbumclass(id,typeid,options) {		
						   var e = document.getElementsByName(id);			
						   options = $.extend({title: "è½¬ç§»å¾çåç±»"}, options || {});
						   var dialog = new Boxy(
								   "<form  method='post' action='company_photo.php' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;ç¡®å®è¦è½¬ç§»éä¸­çå¾çå°è¯¥åç±»ï¼</p><p id='proid'></p><input type='hidden' name='typeid' value='"+typeid+"' /></div><p class='sub t-c'><input type='submit' name='updealbumsclass' value='ç¡®å®' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
						   allDialogs.push(dialog);						
						   for (var i=0; i<e.length; i++)
							   if(e[i].checked){
								   document.getElementById('proid').innerHTML +="<input type='hidden' name='albumsid[]' value='"+e[i].value+"' />"
						       }
						   return false;
					    }
					
						//å¤å¶æåæç¤º
						function fuzhi(options) {			
				options = $.extend({title: "å¤å¶æå"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;å¤å¶æåï¼æctrl+v ç²è´´åå®¹</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
					
					//å¤å¶æåæç¤º
						function save(options) {			
				options = $.extend({title: "ä¿å­è®¾ç½®"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;æ¨ä¿®æ¹çåå®¹å·²ä¿å­ï¼</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
				//è¯¢çæå
						function xunpantrue(options) {			
				options = $.extend({title: "è¯¢çæå"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;æ­åæ¨ï¼è¯¢çæåï¼ï¼</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
							function xunpanfalse(options) {			
				options = $.extend({title: "è¯¢çå¤±è´¥"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;è¯¢çä¿¡æ¯è¾å¥ä¸æ­£ç¡®æèä¸ºç©ºï¼ä¸è½è¿è¡è¯¢çï¼</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
					function shoucangtrue(options) {			
				options = $.extend({title: "æ¶èæå"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;æ¶èæåï¼</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
				function success(options) {			
				options = $.extend({title: "æä½æç¤º"}, options || {});
						var dialog = new Boxy(
				     "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;æä½æåï¼</p></div></form>", options);
						allDialogs.push(dialog);	
						return false;
					}
			//è®¾ç½®éæ¶ææ£
			function attend(id,actoin,typeid,options) {
				var info ="";
				if(actoin=="attend_yes"){
					info = "æ¯å¦è¦è®¾ç½®æéäº§ååå æ´»å¨";
				}else{
					info = "æ¯å¦è¦è®¾ç½®æéäº§ååæ¶æ´»å¨";
				}
				var e = document.getElementsByName(id);	
				options = $.extend({title: 'è®¾ç½®æ´»å¨'}, options || {});
					var dialogs = new Boxy(
				     "<form  method='post' action='company_discount.php' >"+
					 "<div class='updtitle'style='min-height:40px'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;"+info+"</p><p id='proid'></p><input type='hidden' name='typeid' value='"+typeid+"' /></div><p class='sub t-c'><input type='submit' name='"+actoin+"' value='ç¡®å®' class='lianjie' /><input type='button' value='åæ¶' class='cancel'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);
						for (var i=0; i<e.length; i++){
							if(e[i].checked){
							 document.getElementById('proid').innerHTML +="<input type='hidden' name='id[]' value='"+e[i].value+"' />"
							}
						}
						return false;
			}	
		    //åä¸ªäº§åè®¾ç½®éæ¶ææ£æ´»å¨
			function attend_one(id,action,typeid,options) {			
				var e = document.getElementsByName(id);	
				options = $.extend({title: 'è®¾ç½®æ´»å¨'}, options || {});
					var dialogs = new Boxy(
				     "<form  method='post' action='company_discount.php' >"+
					 "<div class='updtitle'style='min-height:40px'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_true f-l'>&nbsp;</em>&nbsp;&nbsp;æ¯å¦è¦æ´æ¹è¯¥äº§åæ´»å¨è®¾ç½®</p><input type='hidden' name='id' value='"+id+"'/></p><input type='hidden' name='action' value='"+action+"' /><input type='hidden' name='typeid' value='"+typeid+"' /></div><p class='sub t-c'><input type='submit' name='attend' value='ç¡®å®' class='lianjie' /><input type='button' value='åæ¶' class='cancel'onclick='Boxy.get(this).hide();' /></p></form>", options);
						allDialogs.push(dialogs);						
						return false;
			}	
			
			//å é¤ï¼åä¸ªï¼
			function dele(id,options) {		
			options = $.extend({title: "å é¤"}, options || {});
					var dialog = new Boxy(
				 "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;ç¡®è®¤è¦å é¤æéåï¼</p><p id='proid'></p><input type='hidden' name='id' value='"+id+"' /></div><p class='sub t-c'><input type='submit' name='del' value='ç¡®å®' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
					allDialogs.push(dialog);
				return false;
			}
			//å é¤ï¼æ¹éï¼
			function deles(id,options) {	
		   var e = document.getElementsByName(id);
			options = $.extend({title: "æ¹éå é¤"}, options || {});
					var dialog = new Boxy(
				 "<form  method='post' action='' ><div class='updtitle'><p class='fs-14 jg' style='margin-top:10px;'><em class='ico_jg f-l'>&nbsp;</em>&nbsp;&nbsp;ç¡®è®¤è¦å é¤æéåï¼</p><p id='ids'></p></div><p class='sub t-c'><input type='submit' name='dels' value='ç¡®å®' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie' onclick='Boxy.get(this).hide();' /></p></form>", options);
					allDialogs.push(dialog);
					for (var i=0; i<e.length; i++){
							if(e[i].checked){
							 document.getElementById('ids').innerHTML +="<input type='hidden' name='id[]' value='"+e[i].value+"' />"
							}
						}
				return false;
			}
			//åå°æäº¤å¨è¯¢ä¿¡æ¯
			function consult(pro_id,options) {
				options = $.extend({title: 'ååå¨è¯¢'}, options || {});
				var dialogs = new Boxy(
			 "<form  method='post' action=''><div class='updtitle field'><p><span class='fs-13 c-333 fw-b'>å¨è¯¢ç±»åï¼</span><input type='radio' name='pointType' value='1' >ååå¨è¯¢<input type='radio' name='pointType' value='2'>åºå­éé<input type='radio' name='pointType' value='3'>æ¯ä»é®é¢<input type='radio' name='pointType' value='4'>åç¥¨åä¿ä¿®</p><p class='fs-13 c-333 fw-b'>å¨è¯¢åå®¹:</p><p><input type='hidden' name='pro_id' value='"+pro_id+"' /><textarea  name='consultationContent' id='consultationContent' style='font-size: 14px; width:350px;height:100px' ></textarea></p></div><p class='sub t-c'><input type='submit' name='consult' value='ä¿å­' class='lianjie' /><input class='cancel' type='button' value='åæ¶' class='lianjie'onclick='Boxy.get(this).hide();' /></p></form>", options);
				allDialogs.push(dialogs);
				
				return false;
			}
			